package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Region;
import cn.wolfcode.luowowo.article.domain.Route;
import cn.wolfcode.luowowo.article.query.RegionQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 路线服务
 */
public interface IRouteService {

    /**
     * 添加与更新
     * @param route
     */
    void saveOrUpdate(Route route);

    /**
     * 查询单个
     * @param rid
     * @return
     */
    Region get(Long rid);

    /**
     * 查询热门的路线
     * @return
     */
    List<Route> queryHotRegions();

    List<Route> list();

    Route selectMaxHotRouteWithDestId(Long id);
}
